Dynamic Value Zone Oscillator (DVZO) - @CRYPTIK1Dynamic Value Zone Oscillator (DVZO) @CRYPTIK1
Introduction: What is the DVZO?
The Dynamic Value Zone Oscillator (DVZO) is a powerful momentum indicator that reframes the classic "overbought" and "oversold" concept. Instead of relying on a fixed lookback period like a standard RSI or Stochastics, the DVZO measures the current price relative to a significant, higher-timeframe Value Zone (e.g., the previous week's entire price range).
This gives you a more contextual and structural understanding of price. The core question it answers is not just "Is the price moving up or down quickly?" but rather, "Where is the current price in relation to its recently established area of value?"
This allows traders to identify true "premium" (overbought) and "discount" (oversold) levels with greater accuracy, leading to higher-probability reversal and trend-following signals.
The Core Concept: Price vs. Value
The market is constantly trying to find equilibrium or "fair value." The DVZO is built on the principle that the high and low of a significant prior period (like the previous day, week, or month) create a powerful area of perceived value.
The Value Zone: The range between the high and low of the selected higher timeframe. The midpoint of this zone is the equilibrium (0 line on the oscillator).
Premium Territory (Distribution Zone): When price breaks above the Value Zone High (+100 line), it is trading at a premium. This is an area where sellers are more likely to become active and buyers may be over-extending.
Discount Territory (Accumulation Zone): When price breaks below the Value Zone Low (-100 line), it is trading at a discount. This is an area where buyers are more likely to see value and sellers may be exhausted.
By anchoring its analysis to these significant structural levels, the DVZO filters out much of the noise from lower-timeframe price fluctuations.
Key Features
The Oscillator:
The main blue line visualizes exactly where the current price is within the context of the Value Zone.
+100: The high of the Value Zone.
0: The midpoint/equilibrium of the Value Zone.
-100: The low of the Value Zone.
Automatic Divergence Detection:
The DVZO automatically identifies and plots bullish and bearish divergences on both the price chart and the oscillator itself.
Bullish Divergence: Price makes a new low, but the DVZO makes a higher low. This is a strong signal that downside momentum is fading and a reversal to the upside is likely.
Bearish Divergence: Price makes a new high, but the DVZO makes a lower high. This indicates that upside momentum is waning and a pullback is probable.
Value Migration Histogram:
The purple histogram in the background visualizes the width of the Value Zone.
Expanding Histogram: Volatility is increasing, and the accepted value range is getting wider.
Contracting Histogram: Volatility is decreasing, and the price is coiling in a tight range, often in anticipation of a major breakout.
How to Use the DVZO: Trading Strategies
1. Reversion Trading
This is the most direct way to use the indicator.
Look for Buys: When the DVZO line drops below -100, the price is in the "Accumulation Zone." Wait for the price to show signs of strength (e.g., a bullish candle pattern) and the DVZO line to start turning back up towards the -100 level. This is a high-probability mean reversion setup.
Look for Sells: When the DVZO line moves above +100, the price is in the "Distribution Zone." Look for signs of weakness (e.g., a bearish engulfing candle) and the DVZO line to start turning back down towards the +100 level.
2. Divergence Trading
Divergences are powerful confirmation signals.
Entry Signal: When a Bullish Divergence appears, it provides a strong entry signal for a long position, especially if it occurs within the Accumulation Zone (below -100).
Exit/Short Signal: When a Bearish Divergence appears, it can serve as a signal to take profit on long positions or to look for a short entry, especially if it occurs in the Distribution Zone (above +100).
3. Best Practices & Settings
Timeframe Synergy: The DVZO is most effective when your chart timeframe is lower than your selected Value Zone Source.
For Day Trading (e.g., 1H, 4H chart): Use the "Previous Day" Value Zone.
For Swing Trading (e.g., 1D, 12H chart): Use the "Previous Week" or "Previous Month" Value Zone.
Confirmation is Key: The DVZO is a powerful tool, but it should not be used in isolation. Always combine its signals with other forms of analysis, such as market structure, support/resistance levels, and candlestick patterns, for confirmation.
Cerca negli script per "swing trading"
Fair Value Gaps BOOSTED [LuxAlgo & mqsxn] Fair Value Gaps BOOSTED
This enhanced version of LuxAlgo’s Fair Value Gap indicator takes market imbalance detection to the next level. Built on the trusted foundation of the original, this extension introduces powerful new features designed for traders who want deeper insight and more control:
Extended Visualization – Fair Value Gaps now stretch farther into the past with customizable bar extensions, so you can easily track unmitigated gaps over longer distances of time.
Intersection Highlights – Automatically identify and shade overlapping bullish/bearish FVGs, giving instant visual clarity on high-confluence zones.
Center Lines & Mitigation Tracking – Optional center lines improve precision, while mitigation markers help confirm when gaps are filled.
Advanced Filtering – Control visibility with minimum gap sizes, custom start dates for gap formations, and per-direction display limits.
Dashboard Stats – On-chart metrics show the number of detected and mitigated gaps, plus percentages, at a glance.
Alerts Ready – Set up alerts for fresh FVG formation or mitigation events, so you never miss a key signal.
Whether you’re scalping, day trading, or swing trading, Fair Value Gaps BOOSTED helps you pinpoint institutional price imbalances and trade around them with confidence.
------
Inputs & Settings
Threshold % / Auto
Defines the minimum gap size as a percentage of price. Enable Auto to let the script automatically adapt thresholding based on volatility.
Unmitigated Lines (combined)
Draws guide lines for a set number of the most recent unmitigated gaps.
Mitigation Levels
Shows dashed lines where gaps have been fully mitigated (filled).
Timeframe
Lets you calculate Fair Value Gaps on a higher or lower timeframe than the chart you’re viewing.
Style
Dynamic Mode
Keeps the most recent gap area actively updating with price as long as it remains unmitigated.
Extend Right (bars)
Controls how many bars into the future each gap visualization will project.
Bullish / Bearish Colors
Customize the fill colors of bullish and bearish gaps.
Center Line & Width
Adds a dotted line through the midpoint of each gap for visual precision.
Filter
Min Gap Size (ticks)
Only display gaps greater than or equal to this size.
Min Formation Date (days ago)
Show gaps formed within a given lookback window (e.g., only last 4 days).
Display
Show Last Bullish / Bearish (unmitigated)
Limit how many recent bullish or bearish gaps appear at once (set to 0 for unlimited).
Intersections
Show Intersections
Highlight overlapping bullish and bearish gaps as shaded zones.
Show Intersections Only
Hide individual gaps and show only the overlapping regions.
Intersection Color
Customize the fill for overlap areas.
Intersection Center Line / Width
Optionally plot a midpoint line through the overlap zone.
Dashboard
Show Dashboard
Display a compact on-chart table of bullish vs bearish counts and mitigation percentages.
Location
Choose where the dashboard sits (top right, bottom right, bottom left).
Size
Adjust text size (Tiny, Small, Normal).
Frozen 4H VWAP – Precision AnchoredFrozen 4H VWAP – Precision Anchored Like Ice
The Frozen 4H VWAP – Precision Anchored delivers a clean, stable, and reliable view of the 4-hour Volume Weighted Average Price, designed for traders who want higher timeframe insights without intrabar noise or repainting.
🔹 Key Features:
Non-Repainting: VWAP value is “frozen” at the close of each 4H candle — no mid-bar updates or flickering.
4H Timeframe Anchoring: Seamlessly pulls 4-hour VWAP values into any timeframe you’re trading on.
Clear Trend Reference: Updates only when a new 4H candle begins, acting as a trustworthy anchor for support/resistance.
Custom Source Option: Choose from different price sources (default: HLC3) to fit your strategy.
Whether you're scalping, day trading, or swing trading, this indicator gives you a powerful edge by grounding your decisions in higher timeframe VWAP data — clear, calm, and frozen in time.
Ghost King v5 (9014706587)👑 Ghost King v5 is a custom-built trading indicator designed by Karthik for both intraday precision and swing trading clarity . It blends real-time responsiveness with broader trend recognition, making it a versatile tool for traders who need agility during the day and strategic insight across sessions.
🔍 Key Highlights:
- Dual-purpose logic: Tailored to adapt across short-term scalping and multi-day swing setups.
- Volatility-aware: Likely incorporates dynamic thresholds or session-based filters to avoid false signals during low-volume periods.
- Visual clarity: Built with modular toggles and intuitive plotting, ensuring traders can quickly interpret signals without clutter.
- Non-repainting architecture: Ensures stability and reliability, especially during live market conditions.
- Customizable UX: Designed with user experience in mind—session awareness, error-proofing, and flexible display options.
Whether you're navigating the chaos of intraday volatility or riding multi-day momentum, Ghost King v5 aims to be your strategic edge.
YBL_LUXE — Squeeze Momentum (Panel + Pinta Velas) v1.0📌 Description of the indicator: YBL_LUXE — Squeeze Momentum Panel
The YBL_LUXE Squeeze Momentum Panel is an advanced tool that combines momentum analysis with a squeeze detector, giving traders a precise view of when the market is contracting and when it may explode into strong directional moves.
🔎 How it works
Momentum Histogram:
Green/Blue bars → Strong bullish pressure.
Red/Orange bars → Strong bearish pressure.
Fading colors → Weakening momentum.
Squeeze ON/OFF signals:
Black dots (ON) → Market is in compression (Bollinger Bands inside Keltner Channels).
Yellow dots (OFF) → Compression is released, possible breakout coming.
⚡ Key Benefits
Detects accumulation phases and breakout conditions.
Highlights true momentum and filters noise.
Clean and professional design, fully customizable.
Works on any asset or timeframe (stocks, indices, futures, forex, crypto).
🎯 Trading Tips
Watch for Squeeze ON (black dots) → the market is storing energy.
When dots switch to Squeeze OFF (yellow) → watch for a potential breakout.
Confirm direction with histogram colors:
Green/blue = bullish bias.
Red/orange = bearish bias.
🛠️ Settings & Customization
Adjustable histogram colors.
Squeeze dots ON/OFF colors.
Zero line visibility.
Histogram style customization.
👉 Ideal for scalping, day trading, and swing trading, this indicator gives you a powerful visual confirmation of market compression and expansion phases.
YBL_LUXE — Squeeze Momentum (Panel + Pinta Velas) v1.0📌 Description of the indicator: YBL_LUXE — Squeeze Panel v1.0
The YBL_LUXE Squeeze Panel combines momentum analysis with the detection of squeeze zones, offering a clear and visually powerful view of when the market is building up energy and when it releases it into directional moves.
🔎 How it works
The histogram shows price momentum:
Strong Green/Blue → Strong bullish momentum.
Strong Red/Orange → Strong bearish momentum.
Lighter colors → Gradual loss of strength.
The Squeeze ON/OFF system (dots):
Black (ON) → Market in compression (Bollinger Bands inside Keltner Channels).
Yellow (OFF) → Market has released compression and may start an explosive move.
⚡ Key advantages
Easily identifies accumulation moments and potential breakouts.
Highlights true momentum, filtering out market noise.
Clean and professional design, 100% customizable in colors and styles.
Works on any timeframe and asset (indices, futures, forex, crypto, stocks).
🎯 How to use
Wait for Squeeze ON (black dots) → market is compressing.
When it switches to Squeeze OFF (yellow dots) → market may release energy and move strongly.
Confirm the direction with the momentum histogram color:
Green/blue → higher probability of bullish breakout.
Red/orange → higher probability of bearish breakout.
🛠️ Customization
From the settings panel you can adjust:
Histogram colors.
Squeeze dots colors (ON/OFF).
Zero line visibility.
Histogram bar style.
👉 This indicator is ideal for scalping, day trading, and swing trading, as it helps detect consolidation zones and strong breakouts, combining compression + momentum.
YBL_LUXE — Squeeze Momentum (Panel + Pinta Velas) v1.0📌 Description of the indicator: YBL_LUXE — Squeeze Panel v1.0
The YBL_LUXE Squeeze Panel combines momentum analysis with the detection of squeeze zones, offering a clear and visually powerful view of when the market is building up energy and when it releases it into directional moves.
🔎 How it works
The histogram shows price momentum:
Strong Green/Blue → Strong bullish momentum.
Strong Red/Orange → Strong bearish momentum.
Lighter colors → Gradual loss of strength.
The Squeeze ON/OFF system (dots):
Black (ON) → Market in compression (Bollinger Bands inside Keltner Channels).
Yellow (OFF) → Market has released compression and may start an explosive move.
⚡ Key advantages
Easily identifies accumulation moments and potential breakouts.
Highlights true momentum, filtering out market noise.
Clean and professional design, 100% customizable in colors and styles.
Works on any timeframe and asset (indices, futures, forex, crypto, stocks).
🎯 How to use
Wait for Squeeze ON (black dots) → market is compressing.
When it switches to Squeeze OFF (yellow dots) → market may release energy and move strongly.
Confirm the direction with the momentum histogram color:
Green/blue → higher probability of bullish breakout.
Red/orange → higher probability of bearish breakout.
🛠️ Customization
From the settings panel you can adjust:
Histogram colors.
Squeeze dots colors (ON/OFF).
Zero line visibility.
Histogram bar style.
👉 This indicator is ideal for scalping, day trading, and swing trading, as it helps detect consolidation zones and strong breakouts, combining compression + momentum.
NPM Trend Indicator ProNPM Trend Indicator Pro
The NPM Trend Indicator Pro is a closed-source, professional-grade trend detection tool designed to help traders identify high-probability directional moves in the market. It combines multiple technical factors to generate clear, actionable trend signals while filtering out noise and reducing false entries.
What it does
Displays trend direction (uptrend, downtrend, or neutral) for the selected symbol.
Shows a confidence or strength score to indicate how reliable the trend signal is.
Highlights potential areas of market exhaustion or reversal based on aggregated trend analysis.
Provides visual cues on the chart to assist with trade timing and risk management.
How it works (concept-level)
Integrates multiple trend-detection methods, including moving average structures, momentum confirmation, and volatility assessment.
Uses adaptive filters to avoid false signals during sideways or choppy market conditions.
Includes zone awareness to help traders avoid entering trades too close to likely reaction points.
Aggregates all signals into a single output to give traders a concise, actionable overview.
How to use it
1. Apply the indicator to your chosen symbol.
2. Observe the trend direction and confidence score displayed on the chart.
3. Confirm that the trend aligns with your trading strategy and timeframe.
4. Use the visual cues for potential entry, exit, and risk management decisions.
Alerts
Optionally set alerts when trend direction changes or when the confidence score reaches a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used for intraday scalping, swing trading, or longer-term trend analysis depending on the trader’s selected timeframe.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and use proper risk management.
NPM Rsi DivergenceNPM RSI Divergence Indicator
The NPM RSI Divergence Indicator is a closed-source tool designed to help traders identify potential reversals and high-probability trade setups using divergence between price action and the Relative Strength Index (RSI). It highlights areas where momentum is weakening or strengthening, giving traders early signals of potential trend changes.
What it does
Detects divergences between RSI and price movement, indicating potential trend reversals or continuation.
Shows the strength or reliability of each divergence signal to help traders gauge probability.
Plots visual markers directly on the chart for easier recognition of potential setups.
Helps traders spot early exhaustion points in trends before price reverses or continues strongly.
How it works (concept-level)
Compares price highs/lows with RSI highs/lows to detect hidden or regular divergences.
Applies adaptive filtering to reduce false signals in choppy or low-volatility markets.
Aggregates divergence signals into clear visual markers and strength indicators.
Incorporates momentum context to highlight divergences that are more likely to produce actionable moves.
How to use it
1. Apply the indicator to your chosen symbol and timeframe.
2. Observe divergence markers and their strength indicators on the chart.
3. Confirm potential trade opportunities by considering trend direction and market context.
4. Use divergence signals to assist with trade entry, exit, or risk management decisions.
Alerts
Optionally set alerts when divergence signals appear or when the strength indicator exceeds a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used on intraday or swing trading timeframes depending on your trading strategy.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and practice proper risk management.
NPM Trend Dashboard NPM Trend Dashboard
The NPM Trend Dashboard is a closed-source tool designed to help traders quickly assess market conditions and make informed decisions. It combines trend detection, momentum, and volatility awareness into a clear interface, showing the current trend direction and strength for selected symbols.
What it does
Displays trend direction (uptrend, downtrend, or neutral) for each selected symbol.
Shows a confidence score or strength indicator to help gauge reliability.
Highlights potential areas of market exhaustion or reversal based on aggregated trend signals.
How it works (concept-level)
Combines multiple trend-detection methods such as moving average structure, momentum filters, and volatility assessment to generate an overall trend signal.
Uses adaptive filters to reduce noise and avoid false signals in choppy markets.
Incorporates zone awareness to account for areas where price may pause or reverse.
Aggregates signals into a single dashboard view to provide traders with a quick, actionable overview.
How to use it
1. Select symbols to monitor.
2. Switch to your desired timeframe to view trend information.
3. Observe trend direction and confidence score for each symbol.
4. Use the dashboard to supplement trade entries, exits, and risk management strategies.
Alerts
Optionally set alerts when trend direction changes or when confidence exceeds a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used for intraday scalping, swing trading, or longer-term trend analysis depending on the selected timeframe.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and practice proper risk management.
Ict kill zone Pro++What is Season High / Low?
A Seasonal High/Low refers to price levels (highs or lows) that tend to form during specific times of the year (or season).
It’s based on the idea that markets have repeating cycles influenced by:
Economic reports (quarterly earnings, GDP releases, crop harvest cycles, etc.)
Institutional flows (quarterly rebalancing, end-of-year tax moves)
Natural/commodity cycles (oil demand in winter, crop harvest in fall, etc.)
🔹 Types of Seasonal Highs & Lows
Annual Season High/Low
Highest and lowest price of the year.
Example: EURUSD 2023 high/low.
Useful for long-term key levels.
Quarterly Season High/Low
Highs & lows of each 3-month quarter.
Institutions rebalance portfolios each quarter → causing strong moves.
Monthly Season High/Low
Highs & lows formed within each calendar month.
Often used for swing trading.
🔹 Why Season High/Low Matters
Liquidity Pools → Old highs/lows attract stop hunts (smart money loves to raid seasonal levels).
Bias Reference → If price is above yearly low but below yearly high → you know the market is “inside the yearly range.”
Institutional Targets → Many funds benchmark against yearly/quarterly levels.
Confluence → Combining OBs, FVGs, ADR, and seasonal highs/lows = stronger zones.
🔹 Example (ICT style use)
If price trades near the yearly low, expect either:
✅ A liquidity sweep (false break) before rally, or
✅ A breakdown continuation if institutions want discount pricing.
If price trades near the quarterly high, it’s often used as a “draw on liquidity” target.
🔹 How Traders Use Them
Mark Yearly High & Low (from January – December).
Mark Quarterly Highs/Lows (Q1, Q2, Q3, Q4).
Watch how price reacts when approaching these zones:
Liquidity sweeps
Reversals
Breakouts
✅ In short:
Season Highs & Lows = Key reference points from specific time periods (yearly, quarterly, monthly).
They act as institutional liquidity magnets and are critical for identifying long-term bias, liquidity raids, and market cycle transitions.
Rolling Correlation BTC vs Hedge AssetsRolling Correlation BTC vs Hedge Assets
Overview
This indicator calculates and plots the rolling correlation between Bitcoin (BTC) returns and several key hedge assets:
• XAUUSD (Gold)
• EURUSD (proxy for DXY, U.S. Dollar Index)
• VIX (Volatility Index)
• TLT (20y U.S. Treasury Bonds ETF)
By monitoring these dynamic correlations, traders can identify whether BTC is moving in sync with risk assets or decoupling as a hedge, and adjust their trading strategy accordingly.
How it works
1. Computes returns for BTC and each asset using percentage change.
2. Uses the rolling correlation function (ta.correlation) over a configurable window length (default = 12 bars).
3. Plots each correlation as a separate colored line (Gold = Yellow, EURUSD = Blue, VIX = Red, TLT = Green).
4. Adds threshold levels at +0.3 and -0.3 to help classify correlation regimes.
How to use it
• High positive correlation (> +0.3): BTC is moving together with the asset (risk-on behavior).
• Near zero (-0.3 to +0.3): BTC is showing little to no correlation — neutral/independent moves.
• Negative correlation (< -0.3): BTC is moving in the opposite direction — potential hedge opportunity.
Practical strategies:
• Watch BTC vs VIX: a spike in volatility (VIX ↑) usually coincides with BTC selling pressure.
• Track BTC vs EURUSD: stronger USD often puts downside pressure on BTC.
• Observe BTC vs Gold: during “flight to safety” events, gold rises while BTC weakens.
• Monitor BTC vs TLT: rising yields (falling TLT) often align with BTC weakness.
Inputs
• Window Length (bars): Number of bars used to calculate rolling correlations (default = 12).
• Comparison Timeframe: Default = 5m. Can be changed to align with your intraday or swing trading style.
Notes
• Works best on intraday charts (1m, 5m, 15m) for scalping and short-term setups.
• Use correlations as context, not standalone signals — combine with volume, VWAP, and price action.
• Correlations are dynamic; they can switch regimes quickly during macro events (CPI, NFP, FOMC).
This tool is designed for traders who want to manage risk exposure by monitoring whether BTC is behaving as a risk-on asset or hedge, and to exploit opportunities during decoupling phases.
Daily Open & ATR Levels + Monthly/Weekly VWAP V2.0ore Functions:
Customisable ATR Levels
4 adjustable ATR percentage levels (default: 25%, 50%, 75%, 100%)
Creates 8 dynamic support/resistance lines around daily open price
Fully customisable from 0% to 200% in 5% increments
Anchored VWAP
Monthly VWAP: Resets at the beginning of each month
Weekly VWAP: Resets every Monday (after Friday close)
Toggle on/off for each VWAP independently
Smart Fill Zones
Weekly Fill: Highlights when Weekly VWAP is within Level 1 ATR range
Monthly Fill: Highlights when Monthly VWAP is within Level 2 ATR range
Customisable colors and transparency for each fill zone
Key Features:
Daily open price reference line (blue)
Step-line style for clean visualisation
Individual color controls for all levels
Works on any timeframe (uses daily ATR data)
Perfect for intraday and swing trading strategies
Use Cases:
Identify key support/resistance zones based on volatility
Spot VWAP convergence with ATR levels for potential reversals
Set profit targets and stop losses using ATR multiples
Analyze price action relative to daily open and volume-weighted averages
This indicator combines volatility-based levels with volume-weighted price analysis for comprehensive market structure visualisation.
Psych Zones – Continuous 250-pip Bands (clamped boxes)Market Makers liquidation and reversal zones for swing trading
Machine Learning BBPct [BackQuant]Machine Learning BBPct
What this is (in one line)
A Bollinger Band %B oscillator enhanced with a simplified K-Nearest Neighbors (KNN) pattern matcher. The model compares today’s context (volatility, momentum, volume, and position inside the bands) to similar situations in recent history and blends that historical consensus back into the raw %B to reduce noise and improve context awareness. It is informational and diagnostic—designed to describe market state, not to sell a trading system.
Background: %B in plain terms
Bollinger %B measures where price sits inside its dynamic envelope: 0 at the lower band, 1 at the upper band, ~ 0.5 near the basis (the moving average). Readings toward 1 indicate pressure near the envelope’s upper edge (often strength or stretch), while readings toward 0 indicate pressure near the lower edge (often weakness or stretch). Because bands adapt to volatility, %B is naturally comparable across regimes.
Why add (simplified) KNN?
Classic %B is reactive and can be whippy in fast regimes. The simplified KNN layer builds a “nearest-neighbor memory” of recent market states and asks: “When the market looked like this before, where did %B tend to be next bar?” It then blends that estimate with the current %B. Key ideas:
• Feature vector . Each bar is summarized by up to five normalized features:
– %B itself (normalized)
– Band width (volatility proxy)
– Price momentum (ROC)
– Volume momentum (ROC of volume)
– Price position within the bands
• Distance metric . Euclidean distance ranks the most similar recent bars.
• Prediction . Average the neighbors’ prior %B (lagged to avoid lookahead), inverse-weighted by distance.
• Blend . Linearly combine raw %B and KNN-predicted %B with a configurable weight; optional filtering then adapts to confidence.
This remains “simplified” KNN: no training/validation split, no KD-trees, no scaling beyond windowed min-max, and no probabilistic calibration.
How the script is organized (by input groups)
1) BBPct Settings
• Price Source – Which price to evaluate (%B is computed from this).
• Calculation Period – Lookback for SMA basis and standard deviation.
• Multiplier – Standard deviation width (e.g., 2.0).
• Apply Smoothing / Type / Length – Optional smoothing of the %B stream before ML (EMA, RMA, DEMA, TEMA, LINREG, HMA, etc.). Turning this off gives you the raw %B.
2) Thresholds
• Overbought/Oversold – Default 0.8 / 0.2 (inside ).
• Extreme OB/OS – Stricter zones (e.g., 0.95 / 0.05) to flag stretch conditions.
3) KNN Machine Learning
• Enable KNN – Switch between pure %B and hybrid.
• K (neighbors) – How many historical analogs to blend (default 8).
• Historical Period – Size of the search window for neighbors.
• ML Weight – Blend between raw %B and KNN estimate.
• Number of Features – Use 2–5 features; higher counts add context but raise the risk of overfitting in short windows.
4) Filtering
• Method – None, Adaptive, Kalman-style (first-order),
or Hull smoothing.
• Strength – How aggressively to smooth. “Adaptive” uses model confidence to modulate its alpha: higher confidence → stronger reliance on the ML estimate.
5) Performance Tracking
• Win-rate Period – Simple running score of past signal outcomes based on target/stop/time-out logic (informational, not a robust backtest).
• Early Entry Lookback – Horizon for forecasting a potential threshold cross.
• Profit Target / Stop Loss – Used only by the internal win-rate heuristic.
6) Self-Optimization
• Enable Self-Optimization – Lightweight, rolling comparison of a few canned settings (K = 8/14/21 via simple rules on %B extremes).
• Optimization Window & Stability Threshold – Governs how quickly preferred K changes and how sensitive the overfitting alarm is.
• Adaptive Thresholds – Adjust the OB/OS lines with volatility regime (ATR ratio), widening in calm markets and tightening in turbulent ones (bounded 0.7–0.9 and 0.1–0.3).
7) UI Settings
• Show Table / Zones / ML Prediction / Early Signals – Toggle informational overlays.
• Signal Line Width, Candle Painting, Colors – Visual preferences.
Step-by-step logic
A) Compute %B
Basis = SMA(source, len); dev = stdev(source, len) × multiplier; Upper/Lower = Basis ± dev.
%B = (price − Lower) / (Upper − Lower). Optional smoothing yields standardBB .
B) Build the feature vector
All features are min-max normalized over the KNN window so distances are in comparable units. Features include normalized %B, normalized band width, normalized price ROC, normalized volume ROC, and normalized position within bands. You can limit to the first N features (2–5).
C) Find nearest neighbors
For each bar inside the lookback window, compute the Euclidean distance between current features and that bar’s features. Sort by distance, keep the top K .
D) Predict and blend
Use inverse-distance weights (with a strong cap for near-zero distances) to average neighbors’ prior %B (lagged by one bar). This becomes the KNN estimate. Blend it with raw %B via the ML weight. A variance of neighbor %B around the prediction becomes an uncertainty proxy ; combined with a stability score (how long parameters remain unchanged), it forms mlConfidence ∈ . The Adaptive filter optionally transforms that confidence into a smoothing coefficient.
E) Adaptive thresholds
Volatility regime (ATR(14) divided by its 50-bar SMA) nudges OB/OS thresholds wider or narrower within fixed bounds. The aim: comparable extremeness across regimes.
F) Early entry heuristic
A tiny two-step slope/acceleration probe extrapolates finalBB forward a few bars. If it is on track to cross OB/OS soon (and slope/acceleration agree), it flags an EARLY_BUY/SELL candidate with an internal confidence score. This is explicitly a heuristic—use as an attention cue, not a signal by itself.
G) Informational win-rate
The script keeps a rolling array of trade outcomes derived from signal transitions + rudimentary exits (target/stop/time). The percentage shown is a rough diagnostic , not a validated backtest.
Outputs and visual language
• ML Bollinger %B (finalBB) – The main line after KNN blending and optional filtering.
• Gradient fill – Greenish tones above 0.5, reddish below, with intensity following distance from the midline.
• Adaptive zones – Overbought/oversold and extreme bands; shaded backgrounds appear at extremes.
• ML Prediction (dots) – The KNN estimate plotted as faint circles; becomes bright white when confidence > 0.7.
• Early arrows – Optional small triangles for approaching OB/OS.
• Candle painting – Light green above the midline, light red below (optional).
• Info panel – Current value, signal classification, ML confidence, optimized K, stability, volatility regime, adaptive thresholds, overfitting flag, early-entry status, and total signals processed.
Signal classification (informational)
The indicator does not fire trade commands; it labels state:
• STRONG_BUY / STRONG_SELL – finalBB beyond extreme OS/OB thresholds.
• BUY / SELL – finalBB beyond adaptive OS/OB.
• EARLY_BUY / EARLY_SELL – forecast suggests a near-term cross with decent internal confidence.
• NEUTRAL – between adaptive bands.
Alerts (what you can automate)
• Entering adaptive OB/OS and extreme OB/OS.
• Midline cross (0.5).
• Overfitting detected (frequent parameter flipping).
• Early signals when early confidence > 0.7.
These are purely descriptive triggers around the indicator’s state.
Practical interpretation
• Mean-reversion context – In range markets, adaptive OS/OB with ML smoothing can reduce whipsaws relative to raw %B.
• Trend context – In persistent trends, the KNN blend can keep finalBB nearer the mid/upper region during healthy pullbacks if history supports similar contexts.
• Regime awareness – Watch the volatility regime and adaptive thresholds. If thresholds compress (high vol), “OB/OS” comes sooner; if thresholds widen (calm), it takes more stretch to flag.
• Confidence as a weight – High mlConfidence implies neighbors agree; you may rely more on the ML curve. Low confidence argues for de-emphasizing ML and leaning on raw %B or other tools.
• Stability score – Rising stability indicates consistent parameter selection and fewer flips; dropping stability hints at a shifting backdrop.
Methodological notes
• Normalization uses rolling min-max over the KNN window. This is simple and scale-agnostic but sensitive to outliers; the distance metric will reflect that.
• Distance is unweighted Euclidean. If you raise featureCount, you increase dimensionality; consider keeping K larger and lookback ample to avoid sparse-neighbor artifacts.
• Lag handling intentionally uses neighbors’ previous %B for prediction to avoid lookahead bias.
• Self-optimization is deliberately modest: it only compares a few canned K/threshold choices using simple “did an extreme anticipate movement?” scoring, then enforces a stability regime and an overfitting guard. It is not a grid search or GA.
• Kalman option is a first-order recursive filter (fixed gain), not a full state-space estimator.
• Hull option derives a dynamic length from 1/strength; it is a convenience smoothing alternative.
Limitations and cautions
• Non-stationarity – Nearest neighbors from the recent window may not represent the future under structural breaks (policy shifts, liquidity shocks).
• Curse of dimensionality – Adding features without sufficient lookback can make genuine neighbors rare.
• Overfitting risk – The script includes a crude overfitting detector (frequent parameter flips) and will fall back to defaults when triggered, but this is only a guardrail.
• Win-rate display – The internal score is illustrative; it does not constitute a tradable backtest.
• Latency vs. smoothness – Smoothing and ML blending reduce noise but add lag; tune to your timeframe and objectives.
Tuning guide
• Short-term scalping – Lower len (10–14), slightly lower multiplier (1.8–2.0), small K (5–8), featureCount 3–4, Adaptive filter ON, moderate strength.
• Swing trading – len (20–30), multiplier ~2.0, K (8–14), featureCount 4–5, Adaptive thresholds ON, filter modest.
• Strong trends – Consider higher adaptive_upper/lower bounds (or let volatility regime do it), keep ML weight moderate so raw %B still reflects surges.
• Chop – Higher ML weight and stronger Adaptive filtering; accept lag in exchange for fewer false extremes.
How to use it responsibly
Treat this as a state descriptor and context filter. Pair it with your execution signals (structure breaks, volume footprints, higher-timeframe bias) and risk management. If mlConfidence is low or stability is falling, lean less on the ML line and more on raw %B or external confirmation.
Summary
Machine Learning BBPct augments a familiar oscillator with a transparent, simplified KNN memory of recent conditions. By blending neighbors’ behavior into %B and adapting thresholds to volatility regime—while exposing confidence, stability, and a plain early-entry heuristic—it provides an informational, probability-minded view of stretch and reversion that you can interpret alongside your own process.
MA 50/150Simple MA at 50 and 150. Important levels, especially looking at the 1-Day chart, for momentum and swing trading equities and ETFs.
FibroTrend Matrix Premium [By TraderMan]📊 FibroTrend Matrix Premium
FibroTrend Matrix Premium is a powerful multi-timeframe trend and Fibonacci analysis tool. It combines trend direction, trend strength, and key Fibonacci levels into a single, clean interface with a dynamic table. Perfect for traders who want to see the market structure at a glance.
🧠 How It Works
Trend Detection 📈📉
Uses EMA-based dynamic bands to determine current trend direction.
Computes trend strength using slope of the trend line vs. price deviation.
Works on multiple timeframes (5m, 15m, 30m, 1h, 4h, 1D) for overall market context.
Fibonacci Levels & Zones 🔢
Automatically draws key Fibonacci retracement levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
Adds zones around levels for potential support/resistance areas.
Labels are small and clear, lines slightly thicker for better visibility.
Trend Table Summary 📊
Shows current trend direction, strength, and general trend across multiple timeframes.
Fibonacci levels are included in the table with color-coded cells (green = bullish, red = bearish).
⚡ How to Use / Trading Logic
Identify Trend Direction
Uptrend (Green/“Up”) → look for buying opportunities.
Downtrend (Red/“Down”) → look for selling/shorting opportunities.
Neutral → wait or stay out.
Check Trend Strength
Very Strong / Strong (Green) → trend likely to continue.
Weak / Very Weak (Red) → trend may reverse or be choppy.
Use Fibonacci Levels for Entry & Exit
Enter near support zones in an uptrend.
Enter near resistance zones in a downtrend.
Use zone width & tolerance to set stop-loss or take-profit.
Multi-Timeframe Confirmation ✅
Ensure majority of timeframes confirm trend direction for stronger signal.
Example: if 5 out of 6 timeframes show Uptrend, trend is strong.
💡 Tips
Combine with volume, momentum, or RSI for extra confirmation.
Avoid trading solely on Fibonacci levels; use trend + strength table as main guide.
Works well for swing trading, intraday, and crypto markets.
🎯 Entry Example
Price is in an uptrend (green bars, line up).
Fibonacci retracement 0.382 aligns with support zone.
Trend strength = Strong or Very Strong.
Enter Long near zone, set stop-loss slightly below zone, take-profit near next Fibonacci level.
Market Structure Trend Change by TenAMTraderMarket Structure Trend Change Indicator
Description:
This indicator detects changes in market trend by analyzing swing highs and lows to identify Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL). It helps traders quickly see potential reversals and trend continuation points.
Features:
Automatically identifies pivots based on configurable left and right bars.
Labels pivot points (HH, HL, LH, LL) directly on the chart (text-only for clarity).
Generates buy and sell signals when a trend change is detected:
Buy Signal: HL after repeated LLs.
Sell Signal: LH after repeated HHs.
Fully customizable signal appearance: arrow type, circle, label, color, and size.
Adjustable minimum number of repeated highs or lows before a trend change triggers a signal.
Alerts built in for automated notifications when buy/sell signals occur.
Default Settings:
Optimized for a 10-minute chart.
Default “Min repeats before trend change” and pivot left/right bars are set for typical 10-min price swings.
User Customization:
Adjust the “Pivot Left Bars,” “Pivot Right Bars,” and “Min repeats before trend change” to match your trading style, chart timeframe, and volatility.
Enable pivot labels for visual clarity if desired.
Set alerts to receive notifications of trend changes in real time.
How to Use:
Apply the indicator to any chart and timeframe. It works best on swing-trading or trend-following strategies.
Watch for Buy/Sell signals in conjunction with your other analysis, such as volume, support/resistance, or other indicators.
Legal Disclaimer:
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Users should trade at their own risk and are solely responsible for any gains or losses incurred.
DRKSCALPER Strategy"This indicator is designed to help traders identify market structure shifts, order blocks, and liquidity zones. It is useful for scalping and swing trading, and works on multiple timeframes."
Close Just Above 44MA with Uptrendpine editor code for indicator to identify stocks whose price closes just above MA 44 with MA 44 trending up on a daily chart for swing trading
Camarilla Levels Pro Camarilla Levels Pro – Precision Intraday & Swing Trading Tool
Unlock the full potential of Camarilla Pivot Levels for identifying high-probability reversal zones, breakout triggers, and intraday bias shifts.
This indicator automatically calculates L1–L5 levels based on the Camarilla formula, updating daily for precise market adaptation. Whether you’re trading futures, forex, stocks, or crypto, you’ll instantly see:
Reversal Zones – Where price historically reacts and traps traders.
Breakout Zones – L4/L5 for bullish breakouts, L3/L2 for bearish reversals.
Bias Shifts – Quickly gauge if the market is leaning long or short.
Custom Alerts – Get notified when price touches or breaks your chosen level.
Features:
Auto-adjusting Camarilla levels for any symbol & timeframe
Color-coded zones for instant visual recognition
Optional mid-levels for scalpers
Fully customizable styling to match your chart setup
Ideal for:
Day traders wanting precision entry/exit zones
Swing traders watching key daily pivot breaks
Scalpers looking for high-probability reaction points
Triple EMA with Alert | 21, 50, 200 EMA Strategy + Crossover🚀 Boost your trading edge with the Triple EMA with Alert — a professional-grade indicator designed for traders who want precise, real-time trend confirmation across short, medium, and long-term market movements.
🔹 What Makes This Indicator Powerful?
Three Adjustable EMAs — Default: 21, 50, 200 periods (fully customizable 1–200).
Toggle Visibility — Show only the EMAs you need for your strategy.
Real-Time Alerts — Get notified instantly when:
EMA 1 crosses EMA 2 → short-term trend change.
EMA 2 crosses EMA 3 → medium-term trend alignment.
Works on All Markets & Timeframes — Forex, crypto, stocks, indices, and commodities.
🔹 Why Traders Love It
📊 Multi-Timeframe Trend Confirmation — Filter out noise and trade with market momentum.
🎯 Accurate Crossover Signals — Identify bullish and bearish momentum shifts.
🔔 Hands-Free Monitoring — Alerts keep you informed even when you’re away from the chart.
💡 Versatile for Any Strategy — Perfect for scalping, swing trading, or long-term investing.
🔹 How to Use It
Bullish Signal — EMA 1 crossing above EMA 2 or EMA 2 crossing above EMA 3.
Bearish Signal — EMA 1 crossing below EMA 2 or EMA 2 crossing below EMA 3.
Combine with support/resistance zones, RSI, or volume for higher probability trades.
📌 Pro Tip:
Use EMA 21 & EMA 50 for momentum confirmation.
Use EMA 200 to spot the overall market direction.
If you’re serious about trend trading with precision, the Triple EMA with Alert will keep you one step ahead of market moves — no more missed entries or exits.
Auto Trendlines + Breakout Alerts (Tiny Marker, & Alerts)This tool automatically detects and draws uptrend and downtrend lines based on pivot points, then alerts you when price breaks those lines under filtered conditions. It’s designed to cut through market noise and provide only high-quality breakout signals.
Features:
Automatic Trendline Detection – Identifies swing highs/lows and plots trendlines without manual drawing.
Breakout Alerts – Get notified when price breaks a trendline (up or down).
Noise Reduction Filters:
Minimum Break Distance % – Ignore small pierces; only trigger on meaningful breaks.
Bars Cooldown – Prevents multiple signals in a short period.
One Signal Per Trendline – No repeated alerts until a new TL is formed.
Tiny Markers – Clean, minimal arrows instead of large labels.
Customizable Inputs – Adjust pivot sensitivity, break distance, and cooldown for your trading style.
Best Practices:
Works on all timeframes and markets.
For intraday (e.g., XAUUSD M15/H1), try:
Pivot Left/Right = 5, Min Break Distance = 0.20%, Cooldown = 15 bars.
For swing trading (H4/D), try:
Pivot Left/Right = 3–5, Min Break Distance = 0.10–0.15%, Cooldown = 5–10 bars.
Use with additional confirmation (S/R, volume, RSI, etc.) for higher accuracy.
Note: This is an indicator, not a strategy tester — it does not auto-place trades. Always test settings on your chosen market and timeframe.